package Events;

import structures.Inventory;
import structures.Spaceship;
import structures.Tradepost;


public enum PlanetType {
	//Water, Sandwich, BandAid, Tylenol, DuckTape, Cryoliquid, Gun, SpaceOxen
	DESERT		(new int[] {300, 500, 5, 5, 5, 5, 10, 0}, 0.50, 2.00, 500),
	WATER		(new int[] {5000, 2500, 3, 8, 10, 100, 5, 0}, 0.85, 1.25, 3000),
	JUNGLE		(new int[] {3000, 3000, 10, 10, 6, 10, 3, 2}, 0.95, 1.05, 3000),
	INDUSTRIAL	(new int[] {1500, 1500, 25, 30, 30, 2000, 30, 2}, 0.68, 1.30, 5000),
	FURRY		(new int[] {0,0,0,0,0,0,0,50}, 0.00, 2.0, 500),
	MOON		(new int[] {1000, 3000, 20, 20, 20, 2000, 20, 0}, 0.55, 1.50, 1500),
	SNOW		(new int[] {10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000}, 1.00, 1.00, 10000);
	
	private final int[] itemAmounts;
	private final double buyAt, sellAt;
	private final int money;
	
	PlanetType(int[] itemAmounts, double buyAt, double sellAt, int money){
		this.itemAmounts = itemAmounts;
		this.buyAt = buyAt;
		this.sellAt = sellAt;
		this.money = money;
	}
	
	Tradepost createTradepost(PathEvent planetEvent, Spaceship spaceship){
		Inventory i = new Inventory(itemAmounts, money);
		Tradepost tp = new Tradepost(planetEvent, spaceship, i, buyAt, sellAt);
		return tp;
	}
}
